package net.yeah.mickey_zhouyou.module.booklist.ui;

import java.awt.BorderLayout;

import javax.swing.JPanel;
import javax.swing.JSplitPane;

public class BookListAndDetailPane extends JPanel {

	/**
	 * 
	 */
	private static final long serialVersionUID = 7874557045227207760L;

	private BookListAndDetailPane() {
		super.setLayout(new BorderLayout());
		JSplitPane splitPane = new JSplitPane(JSplitPane.VERTICAL_SPLIT, true,
				BookListPane.getPane(), BookDetailPane.getPane());
		splitPane.setOneTouchExpandable(true);
		splitPane.setDividerLocation(400);

		super.add(splitPane, BorderLayout.CENTER);
	}

	private static final BookListAndDetailPane pane = new BookListAndDetailPane();

	public static BookListAndDetailPane getPane() {
		return pane;
	}

}
